﻿using SuperSocket.Client;
using SuperSocket.Client.Proxy;
using System.Net;

for (int i = 4040; i < 4050; i++)
{
    IConnector proxyConnector = new Socks5Connector(new DnsEndPoint("127.0.0.1", i, System.Net.Sockets.AddressFamily.InterNetwork));

    IConnector connector = new SocketConnector(proxyConnector);

    Console.WriteLine("正在连接...");

    var connected = await connector.ConnectAsync(new DnsEndPoint("www.kuaishou.com", 80, System.Net.Sockets.AddressFamily.InterNetwork));

    Console.WriteLine("连接成功");
    break;
}

Console.ReadKey();